Optimal. Leaf size=37 \[ \frac{1}{2} x^2 \left (a+b \tanh ^{-1}(c x)\right )-\frac{b \tanh ^{-1}(c x)}{2 c^2}+\frac{b x}{2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0172118, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {5916, 321, 206} \[ \frac{1}{2} x^2 \left (a+b \tanh ^{-1}(c x)\right )-\frac{b \tanh ^{-1}(c x)}{2 c^2}+\frac{b x}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5916
Rule 321
Rule 206
Rubi steps
\begin{align*} \int x \left (a+b \tanh ^{-1}(c x)\right ) \, dx &=\frac{1}{2} x^2 \left (a+b \tanh ^{-1}(c x)\right )-\frac{1}{2} (b c) \int \frac{x^2}{1-c^2 x^2} \, dx\\ &=\frac{b x}{2 c}+\frac{1}{2} x^2 \left (a+b \tanh ^{-1}(c x)\right )-\frac{b \int \frac{1}{1-c^2 x^2} \, dx}{2 c}\\ &=\frac{b x}{2 c}-\frac{b \tanh ^{-1}(c x)}{2 c^2}+\frac{1}{2} x^2 \left (a+b \tanh ^{-1}(c x)\right )\\ \end{align*}
Mathematica [A] time = 0.0072913, size = 59, normalized size = 1.59 \[ \frac{a x^2}{2}+\frac{b \log (1-c x)}{4 c^2}-\frac{b \log (c x+1)}{4 c^2}+\frac{1}{2} b x^2 \tanh ^{-1}(c x)+\frac{b x}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 49, normalized size = 1.3 \begin{align*}{\frac{a{x}^{2}}{2}}+{\frac{b{x}^{2}{\it Artanh} \left ( cx \right ) }{2}}+{\frac{bx}{2\,c}}+{\frac{b\ln \left ( cx-1 \right ) }{4\,{c}^{2}}}-{\frac{b\ln \left ( cx+1 \right ) }{4\,{c}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.98538, size = 68, normalized size = 1.84 \begin{align*} \frac{1}{2} \, a x^{2} + \frac{1}{4} \,{\left (2 \, x^{2} \operatorname{artanh}\left (c x\right ) + c{\left (\frac{2 \, x}{c^{2}} - \frac{\log \left (c x + 1\right )}{c^{3}} + \frac{\log \left (c x - 1\right )}{c^{3}}\right )}\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.90822, size = 104, normalized size = 2.81 \begin{align*} \frac{2 \, a c^{2} x^{2} + 2 \, b c x +{\left (b c^{2} x^{2} - b\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )}{4 \, c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.592059, size = 42, normalized size = 1.14 \begin{align*} \begin{cases} \frac{a x^{2}}{2} + \frac{b x^{2} \operatorname{atanh}{\left (c x \right )}}{2} + \frac{b x}{2 c} - \frac{b \operatorname{atanh}{\left (c x \right )}}{2 c^{2}} & \text{for}\: c \neq 0 \\\frac{a x^{2}}{2} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20851, size = 80, normalized size = 2.16 \begin{align*} \frac{1}{4} \, b x^{2} \log \left (-\frac{c x + 1}{c x - 1}\right ) + \frac{1}{2} \, a x^{2} + \frac{b x}{2 \, c} - \frac{b \log \left (c x + 1\right )}{4 \, c^{2}} + \frac{b \log \left (c x - 1\right )}{4 \, c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]